package com.eagle.wastesn.action;

import java.sql.SQLException;

import com.eagle.commons.pub.MethodResult;
import com.eagle.wastesn.service.WasteSNService;
import com.opensymphony.xwork2.ActionSupport;

public class WastesnAction extends ActionSupport {
	private static final long serialVersionUID = 1L;

	private WasteSNService wsnser;
	private MethodResult mr = new MethodResult("");
	
	public String getWastesn() {
		int wastesn = 0 ;
		try {
			wastesn = wsnser.getWasteSN("5", mr);
			System.out.println(wastesn);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}

	public WasteSNService getWsnser() {
		return wsnser;
	}

	public void setWsnser(WasteSNService wsnser) {
		this.wsnser = wsnser;
	}

	public MethodResult getMr() {
		return mr;
	}

	public void setMr(MethodResult mr) {
		this.mr = mr;
	}
	
	
}
